package icu.sunway.gushenBlogBackEnd.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import icu.sunway.gushenBlogBackEnd.Entity.Data.CommentDO;
import icu.sunway.gushenBlogBackEnd.Entity.View.ResultVO;

import java.util.List;

public interface CommentService extends IService<CommentDO> {
    ResultVO<List<CommentDO>> getCommentListFromArticle(String article_id);

    ResultVO<Long> getCommentCountFromArticle(String article_id);

    ResultVO<Boolean> addCommentRoot(String article_id, String content, String token);

    ResultVO<Boolean> addCommentChild(String article_id, String to_comment_id, String parent_comment_id, String content, String token);

    ResultVO<Boolean> removeComment(String id, String token);
}
